<?php

namespace common\enums;

/**
 * 状态枚举
 *
 * Class StatusEnum
 * @package common\enums
 * @author jianyan74 <751393839@qq.com>
 */
class StatusEnum extends BaseEnum
{
    const ENABLED = 1;//未接单
    const DISABLED = 0;//已取消
    const DELETE = -1;
    const TYPE = 2;
    const ENABLEDL = 2;
    const RECEIVED = 3;//已接单
    const COMPLETED = 4;//已完成
    /**
     * @return array
     */
    public static function getMap(): array
    {
        return [
            self::ENABLED => '启用',
            self::DISABLED => '禁用',
            // self::DELETE => '已删除',
        ];
    }
    /**
     * @return array|string[]
     * 网路通bannr管理
     */
    public static function type(): array//banner分类

    {
        return [
            self::ENABLED => '首页banner',
            self::TYPE => '推广banner',
        ];

            }


    /**
     * @return array|string[]
     * 张豪资讯管理
     */
    public static function title(): array//默认地址
    {
        return [
            self::ENABLED => '是',
            self::DISABLED => '否',
        ];
    }
    public static function getTypel(): array
    {
        return [
            self::ENABLED => '平台新闻',
            self::ENABLEDL => '平台介绍',
            // self::DELETE => '已删除',
        ];
    }
    /**
     * @return array|string[]
     *张豪订单管理
     */
        public static function getOrde(): array
    {
        return [
            self::ENABLED => '未接单',
            self::RECEIVED => '已接单',
            self::COMPLETED => '已完成',
            self::DISABLED => '已取消',
           
        ];
    }
};